package day1110.strategy;

/**
 * @author Mr.ma
 * @since 2022/11/10 16:39
 **/
public class OperationContext {
    private OperationStrategy strategy;
    public OperationContext(OperationStrategy strategy){
        this.strategy = strategy;
    }
    public int executeStrategy(int num1, int num2){
        return strategy.doOperation(num1, num2);
    }
}
